@echo off
echo Building Smart Login System...

mvn clean compile
if %errorlevel% neq 0 (
    echo Build failed!
    pause
    exit /b %errorlevel%
)

mvn package
if %errorlevel% neq 0 (
    echo Package failed!
    pause
    exit /b %errorlevel%
)

echo Build successful!
echo Output: target/smart-login-system-1.0.0.jar
pause